package hu.diploma.core.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "call_table")
public class Call extends BaseEntity {

	@ManyToOne
	private PersonalData personalData;

	@Column(name = "number")
	private String number;

	@Column(name = "type")
	private String type;

	@Column(name = "date")
	private Date date;

	@Column(name = "duration")
	private String duration;

	@Column(name = "name")
	private String name;

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public void setPersonalData(PersonalData personalData) {
		this.personalData = personalData;
	}

	public PersonalData getPersonalData() {
		return personalData;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

}
